package ooday01;

public class StuExercise01 {
    //学生类
    String name;
    int age;
    String className;
    String stuId;
    String address;
    StuExercise01(){

    }
    StuExercise01(String name,int age,String className,String stuId,String address){
        this.name = name;
        this.age = age;
        this.className = className;
        this.stuId = stuId;
        this.address = address;
    }
    void sayHi(){
        System.out.println("大家好，我叫"+name+"今年"+age+"岁了，班级是"+className+"，学号是"+stuId+"，我家住在"+address);
    }
    void studyWith(String name1){
        System.out.println(name+"正在和"+name1+"一起学习");
    }
}


